package day05;

public class ForDemo {
    public static void main(String[] args) {
        int a =0;
        for(int b=1;b<=100;b++){
            a+=b;
            if(a<10){
                System.out.print("000"+a+" ");
            }else if(a<100){
                System.out.print("00"+a+" ");
            }else if(a<1000){
                System.out.print("0"+a+" ");
            }else {
                System.out.print(a+" ");
            }
            if (b%10==0){
                System.out.println();
            }

        }
    }
}
